home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2002 November / SGI IRIX Base Documentation 2002 November.iso / usr / share / catman / p_man / cat3 / SCSL / zgebd2.z / zgebd2
Encoding:
Text File  |  2002-10-03  |  6.7 KB  |  199 lines

  1.  
  2.  
  3.  
  4. ZZZZGGGGEEEEBBBBDDDD2222((((3333SSSS))))                                                          ZZZZGGGGEEEEBBBBDDDD2222((((3333SSSS))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      ZGEBD2 - reduce a complex general m by n matrix A to upper or lower real
  10.      bidiagonal form B by a unitary transformation
  11.  
  12. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  13.      SUBROUTINE ZGEBD2( M, N, A, LDA, D, E, TAUQ, TAUP, WORK, INFO )
  14.  
  15.          INTEGER        INFO, LDA, M, N
  16.  
  17.          DOUBLE         PRECISION D( * ), E( * )
  18.  
  19.          COMPLEX*16     A( LDA, * ), TAUP( * ), TAUQ( * ), WORK( * )
  20.  
  21. IIIIMMMMPPPPLLLLEEEEMMMMEEEENNNNTTTTAAAATTTTIIIIOOOONNNN
  22.      These routines are part of the SCSL Scientific Library and can be loaded
  23.      using either the -lscs or the -lscs_mp option.  The -lscs_mp option
  24.      directs the linker to use the multi-processor version of the library.
  25.  
  26.      When linking to SCSL with -lscs or -lscs_mp, the default integer size is
  27.      4 bytes (32 bits). Another version of SCSL is available in which integers
  28.      are 8 bytes (64 bits).  This version allows the user access to larger
  29.      memory sizes and helps when porting legacy Cray codes.  It can be loaded
  30.      by using the -lscs_i8 option or the -lscs_i8_mp option. A program may use
  31.      only one of the two versions; 4-byte integer and 8-byte integer library
  32.      calls cannot be mixed.
  33.  
  34. PPPPUUUURRRRPPPPOOOOSSSSEEEE
  35.      ZGEBD2 reduces a complex general m by n matrix A to upper or lower real
  36.      bidiagonal form B by a unitary transformation: Q' * A * P = B. If m >= n,
  37.      B is upper bidiagonal; if m < n, B is lower bidiagonal.
  38.  
  39.  
  40. AAAARRRRGGGGUUUUMMMMEEEENNNNTTTTSSSS
  41.      M       (input) INTEGER
  42.              The number of rows in the matrix A.  M >= 0.
  43.  
  44.      N       (input) INTEGER
  45.              The number of columns in the matrix A.  N >= 0.
  46.  
  47.      A       (input/output) COMPLEX*16 array, dimension (LDA,N)
  48.              On entry, the m by n general matrix to be reduced.  On exit, if m
  49.              >= n, the diagonal and the first superdiagonal are overwritten
  50.              with the upper bidiagonal matrix B; the elements below the
  51.              diagonal, with the array TAUQ, represent the unitary matrix Q as
  52.              a product of elementary reflectors, and the elements above the
  53.              first superdiagonal, with the array TAUP, represent the unitary
  54.              matrix P as a product of elementary reflectors; if m < n, the
  55.              diagonal and the first subdiagonal are overwritten with the lower
  56.              bidiagonal matrix B; the elements below the first subdiagonal,
  57.              with the array TAUQ, represent the unitary matrix Q as a product
  58.              of elementary reflectors, and the elements above the diagonal,
  59.              with the array TAUP, represent the unitary matrix P as a product
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. ZZZZGGGGEEEEBBBBDDDD2222((((3333SSSS))))                                                          ZZZZGGGGEEEEBBBBDDDD2222((((3333SSSS))))
  71.  
  72.  
  73.  
  74.              of elementary reflectors.  See Further Details.  LDA     (input)
  75.              INTEGER The leading dimension of the array A.  LDA >= max(1,M).
  76.  
  77.      D       (output) DOUBLE PRECISION array, dimension (min(M,N))
  78.              The diagonal elements of the bidiagonal matrix B:  D(i) = A(i,i).
  79.  
  80.      E       (output) DOUBLE PRECISION array, dimension (min(M,N)-1)
  81.              The off-diagonal elements of the bidiagonal matrix B:  if m >= n,
  82.              E(i) = A(i,i+1) for i = 1,2,...,n-1; if m < n, E(i) = A(i+1,i)
  83.              for i = 1,2,...,m-1.
  84.  
  85.      TAUQ    (output) COMPLEX*16 array dimension (min(M,N))
  86.              The scalar factors of the elementary reflectors which represent
  87.              the unitary matrix Q. See Further Details.  TAUP    (output)
  88.              COMPLEX*16 array, dimension (min(M,N)) The scalar factors of the
  89.              elementary reflectors which represent the unitary matrix P. See
  90.              Further Details.  WORK    (workspace) COMPLEX*16 array, dimension
  91.              (max(M,N))
  92.  
  93.      INFO    (output) INTEGER
  94.              = 0: successful exit
  95.              < 0: if INFO = -i, the i-th argument had an illegal value.
  96.  
  97. FFFFUUUURRRRTTTTHHHHEEEERRRR DDDDEEEETTTTAAAAIIIILLLLSSSS
  98.      The matrices Q and P are represented as products of elementary
  99.      reflectors:
  100.  
  101.      If m >= n,
  102.  
  103.         Q = H(1) H(2) . . . H(n)  and  P = G(1) G(2) . . . G(n-1)
  104.  
  105.      Each H(i) and G(i) has the form:
  106.  
  107.         H(i) = I - tauq * v * v'  and G(i) = I - taup * u * u'
  108.  
  109.      where tauq and taup are complex scalars, and v and u are complex vectors;
  110.      v(1:i-1) = 0, v(i) = 1, and v(i+1:m) is stored on exit in A(i+1:m,i);
  111.      u(1:i) = 0, u(i+1) = 1, and u(i+2:n) is stored on exit in A(i,i+2:n);
  112.      tauq is stored in TAUQ(i) and taup in TAUP(i).
  113.  
  114.      If m < n,
  115.  
  116.         Q = H(1) H(2) . . . H(m-1)  and  P = G(1) G(2) . . . G(m)
  117.  
  118.      Each H(i) and G(i) has the form:
  119.  
  120.         H(i) = I - tauq * v * v'  and G(i) = I - taup * u * u'
  121.  
  122.      where tauq and taup are complex scalars, v and u are complex vectors;
  123.      v(1:i) = 0, v(i+1) = 1, and v(i+2:m) is stored on exit in A(i+2:m,i);
  124.      u(1:i-1) = 0, u(i) = 1, and u(i+1:n) is stored on exit in A(i,i+1:n);
  125.      tauq is stored in TAUQ(i) and taup in TAUP(i).
  126.  
  127.  
  128.  
  129.                                                                         PPPPaaaaggggeeee 2222
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136. ZZZZGGGGEEEEBBBBDDDD2222((((3333SSSS))))                                                          ZZZZGGGGEEEEBBBBDDDD2222((((3333SSSS))))
  137.  
  138.  
  139.  
  140.      The contents of A on exit are illustrated by the following examples:
  141.  
  142.      m = 6 and n = 5 (m > n):          m = 5 and n = 6 (m < n):
  143.  
  144.        (  d   e   u1  u1  u1 )           (  d   u1  u1  u1  u1  u1 )
  145.        (  v1  d   e   u2  u2 )           (  e   d   u2  u2  u2  u2 )
  146.        (  v1  v2  d   e   u3 )           (  v1  e   d   u3  u3  u3 )
  147.        (  v1  v2  v3  d   e  )           (  v1  v2  e   d   u4  u4 )
  148.        (  v1  v2  v3  v4  d  )           (  v1  v2  v3  e   d   u5 )
  149.        (  v1  v2  v3  v4  v5 )
  150.  
  151.      where d and e denote diagonal and off-diagonal elements of B, vi denotes
  152.      an element of the vector defining H(i), and ui an element of the vector
  153.      defining G(i).
  154.  
  155.  
  156. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  157.      INTRO_LAPACK(3S), INTRO_SCSL(3S)
  158.  
  159.      This man page is available only online.
  160.  
  161.  
  162.  
  163.  
  164.  
  165.  
  166.  
  167.  
  168.  
  169.  
  170.  
  171.  
  172.  
  173.  
  174.  
  175.  
  176.  
  177.  
  178.  
  179.  
  180.  
  181.  
  182.  
  183.  
  184.  
  185.  
  186.  
  187.  
  188.  
  189.  
  190.  
  191.  
  192.  
  193.  
  194.  
  195.                                                                         PPPPaaaaggggeeee 3333
  196.  
  197.  
  198.  
  199.